import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		isLogin: localStorage.getItem('isFrontLogin'),
	},
	mutations: {
		changeLogin(state, isOK) {
			localStorage.setItem('isFrontLogin',isOK);
			state.isLogin = isOK;
		},
	},
	getters: {
		getisLogin(state) {
			return state.isLogin;
		},
	},
	actions: {
		
	},
	modules: {}
})
